import request from '@/utils/request'

export const addOneAdminRole = data => request({
  url: '/addOneAdminRole',
  method: 'put',
  data: data || {}
})

export const deleteOneAdminRole = id => request({
  url: '/deleteOneAdminRole/' + id,
  method: 'delete'
})

export const updateOneAdminRole = data => request({
  url: '/updateOneAdminRole',
  method: 'patch',
  data: data || {}
})

export const getOneAdminRole = id => request({
  url: '/getOneAdminRole/' + id,
  method: 'get'
})

export const getAdminRoleList = data => request({
  url: '/getAdminRoleList',
  method: 'post',
  data: data || {}
})

export const getAllAdminRoleList = () => request({
  url: '/getAllAdminRoleList',
  method: 'get'
})
